fingerprint: Recover from fs::stat errors
authorTom Jakubowski <tom@crystae.net>
Mon, 7 Jul 2014 21:46:03 +0000 (14:46 -0700)
committerTom Jakubowski <tom@crystae.net>
Mon, 7 Jul 2014 22:33:40 +0000 (15:33 -0700)
commitf4881742088d99bfa0efd9b461308537a44196da
treebef764ce4523dd60f2c95e613a4b9af881472a93
parentffd985f1f41c105ac8fe69be5839e3851370e3f3
fingerprint: Recover from fs::stat errors

Fingerprinting will fail at an fs::stat() call if there is a broken
symlink in a package's directory.  This commit recovers from fs::stat()
errors on broken symlinks by treating them as having mtime 0, which
should not affect the overall fingerprint.

Fix #135
src/cargo/sources/path.rs
tests/support/mod.rs
tests/test_cargo_compile.rs